﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using PotatoSoft.Middleware;

namespace PotatoSoft.ImageProcessing.Test
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            String filename = "lena.bmp";
            //ImagePotato_8u image8u = new ImagePotato_8u(100, 100);
            //image1.Source = image8u.ImageSrc.Source;
            ImagePotato_8u image8u = new ImagePotato_8u("lena.bmp");
            image1.Source = image8u.ImageSrc;
        }

        private void image1_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {

        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {

           
        }
    }
}
